The current code expects a checkbox to confirm update installation to be
present, but when the updates are already scheduled, it did not confirm
the actual user action for the update, aka to reboot the machine, instead
of using the previously set update action, which could be Power Off.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4185>
} else {
await this._triggerOfflineUpdateCancel();
}
+ } else if (this._type === DialogType.UPDATE_RESTART && (this._updatePrepared || this._updateScheduled)) {
+ await this._setPostUpdateAction(OFFLINE_UPDATE_ACTION_REBOOT);
}
this._fadeOutDialog();